// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import 'semantic/dist/semantic.js'
import 'semantic/dist/semantic.css'
import '@/components/assets/css/public.css'
import '@/components/assets/css/iconfont/iconfont.css'

Vue.config.productionTip = false

// 自定义组件导出.
import useravatar from '@/components/useravatar'
// 这样就可以直接在vue中直接使用<TitleBar/>使用此组件.
Vue.use(useravatar)
import chatpage from '@/components/chatpage'

Vue.use(chatpage)
/*
import mainwindow from '@/components/mainwindow'

Vue.use(mainwindow)
import leftbar from '@/components/useravatar'

Vue.use(leftbar)

import listview from '@/components/listview'

Vue.use(listview) */

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: {App}
})
